From: Debian GPS team Date: Thu, 3 Jul 2025 23:03:32 +0000 (+0000) Subject: gpsbabelfe_do-not-check-for-newer-version X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7175efaa365aad894e63f86627e4ab11daad9300;p=gpsbabel.git gpsbabelfe_do-not-check-for-newer-version Disable check for newer versions on start. Gbp-Pq: Name gpsbabelfe_do-not-check-for-newer-version --- diff --git a/gui/babeldata.h b/gui/babeldata.h index efe8003f8..7c78ac5e9 100644 --- a/gui/babeldata.h +++ b/gui/babeldata.h @@ -150,7 +150,7 @@ public: int runCount_{0}; // Global preferences. - bool startupVersionCheck_{true}; + bool startupVersionCheck_{false}; bool reportStatistics_{false}; bool allowBetaUpgrades_{false}; bool ignoreVersionMismatch_{true}; diff --git a/gui/mainwindow.cc b/gui/mainwindow.cc index e0c9ac43e..ae5e266ea 100644 --- a/gui/mainwindow.cc +++ b/gui/mainwindow.cc @@ -170,7 +170,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) connect(ui_.actionAbout, &QAction::triggered, this, &MainWindow::aboutActionX); connect(ui_.actionVisit_Website, &QAction::triggered, this, &MainWindow::visitWebsiteActionX); connect(ui_.actionMake_a_Donation, &QAction::triggered, this, &MainWindow::donateActionX); - connect(ui_.actionUpgradeCheck, &QAction::triggered, this, &MainWindow::upgradeCheckActionX); connect(ui_.actionPreferences, &QAction::triggered, this, &MainWindow::preferencesActionX); connect(ui_.inputFormatCombo, &QComboBox::currentIndexChanged, @@ -223,17 +222,6 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) restoreSettings(); upgrade = new UpgradeCheck(this, formatList_, babelData_); - if (babelData_.startupVersionCheck_) { - upgrade->checkForUpgrade(babelVersion_, babelData_.upgradeCheckTime_, - allowBetaUpgrades()); - } - - if (!babelData_.ignoreVersionMismatch_ && babelVersion_ != VERSION) { - VersionMismatch vm(nullptr, babelVersion_, QString(VERSION)); - - vm.exec(); - babelData_.ignoreVersionMismatch_ = vm.neverAgain(); - } } void MainWindow::switchTranslator(QTranslator& translator, const QString& filename) @@ -1000,10 +988,6 @@ void MainWindow::applyActionX() //------------------------------------------------------------------------ void MainWindow::closeActionX() { - QDateTime wt= upgrade->getUpgradeWarningTime(); - if (wt.isValid()) { - babelData_.upgradeCheckTime_ = wt; - } babelData_.runCount_++; QDateTime now = QDateTime::currentDateTime(); diff --git a/gui/mainwinui.ui b/gui/mainwinui.ui index f5765e104..4533f2345 100644 --- a/gui/mainwinui.ui +++ b/gui/mainwinui.ui @@ -691,7 +691,6 @@ - @@ -720,11 +719,6 @@ Preferences... - - - Check for Upgrade - - Visit Website... diff --git a/gui/preferences.cc b/gui/preferences.cc index f12978f1f..f998cd729 100644 --- a/gui/preferences.cc +++ b/gui/preferences.cc @@ -47,7 +47,6 @@ Preferences::Preferences(QWidget* parent, QList& formatList, { ui_.setupUi(this); - ui_.startupCheck->setChecked(babelData_.startupVersionCheck_); ui_.reportStatisticsCheck->setChecked(babelData_.reportStatistics_); connect(ui_.buttonBox, &QDialogButtonBox::accepted, this, &Preferences::acceptClicked); @@ -86,7 +85,6 @@ void Preferences::acceptClicked() formatList_[i].setHidden(item->checkState() == Qt::Unchecked); } - babelData_.startupVersionCheck_ = ui_.startupCheck->isChecked(); babelData_.reportStatistics_ = ui_.reportStatisticsCheck->isChecked(); accept(); } diff --git a/gui/preferences.ui b/gui/preferences.ui index ac671d7d9..d0b1f72dd 100644 --- a/gui/preferences.ui +++ b/gui/preferences.ui @@ -39,13 +39,6 @@ - - - - Check for newer version on start. - - -